import streamlit as st
from page.page import Page
import pandas as pd


class DataMiningMLLM(Page):
    def write(self):

        columns = ['task_name', 'data_source', '详情']
        df = pd.DataFrame(columns=columns)
        data = {
            "task_name": "电商类数据集挖掘_20241118",
            "data_source": "悟空",
            "详情": "http://localhost:8501/?page=data_mining_mllm_detail&task_name=电商类数据集挖掘_20241118",
        }
        df.loc[len(df)] = data
        st.data_editor(df, use_container_width=True,
                            column_config={
                                '详情': st.column_config.LinkColumn('详情', display_text="点击链接")
                            }
                       )

data_mining_mllm = DataMiningMLLM('data_mining_mllm')
